package me.xue.communityhealth.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 挂号类型
 */
@Getter
@Setter
@ToString
public class Registration implements Serializable {

    private Integer id;

    @NotBlank(message = "挂号名称不能为空")
    private String name;

    @NotNull(message = "挂号费不能为空")
    private Float cost;

}
